<?php
/**
* Your application's global configuration.
* This is executed from the "/index.php" script.
*
* @package Scribble
* @subpackage SkeletonApp
*/
use Buan\Autoloader, Buan\Config, Buan\Database;

/**
* Global config variables. Here we've just create the settings that are required
* by Buan, but you can add as many as you wish.
*/
$__dr = dirname(__FILE__);
Config::set('app.command.default', '');
Config::set('app.command.parameter', 'do');
Config::set('app.command.urlPrefix', '');
Config::set('app.dir.controllers', "{$__dr}/controllers");
Config::set('app.dir.views', "{$__dr}/views");
Config::set('app.dir.ignored', array('.', '..', '.svn', 'cvs'));
Config::set('app.docRoot', dirname($__dr));
Config::set('app.domain', isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost');
Config::set('app.urlRoot', '');

AutoLoader::addClassPath("{$__dr}/models");
AutoLoader::addClassPath("{$__dr}/models/managers");
unset($__dr);

/**
* Model relationships.
* If your application has it's own models, define any relationships between them
* here.
*/
?>